//
//  PopoverViewController.swift
//  swift_wobo
//
//  Created by yuxin on 2018/11/16.
//  Copyright © 2018 wuxiantianli. All rights reserved.
//

import UIKit

class PopoverViewController: UIViewController {
    var presentedFrame : CGRect = CGRect.zero

    override func viewDidLoad() {
        super.viewDidLoad()

        
        view.addSubview(bgImageView)
    }
    
    override func viewWillLayoutSubviews() {
        super.viewWillLayoutSubviews()
        
        bgImageView.frame = view.bounds
    }

    lazy var bgImageView : UIImageView = {
       let imageView = UIImageView()
        imageView.image = UIImage(named: "popover_background")
        return imageView
    }()
}

